package com.backend.mapper.rbac;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pojo.entity.Auth;
import com.pojo.entity.RoleAuth;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleAuthMapper extends BaseMapper<RoleAuth> {
    List<Auth> getAuthsByRoleId(@Param("id") Long id);

    Integer removeAuthsByRoleId(@Param("id") Long id);

    Integer insertAuthByRoleId(@Param("id") Long id, @Param("authIds") List<Long> authIds);
}
